/*
 * @title: 自定义指令导出
 * @author: andy.ten@tom.com & xukaixing@hotmail.com
 * @Date: 2022-03-25 21:09:58
 * @LastEditors: andy.ten@tom.com
 * @LastEditTime: 2022-03-31 11:12:36
 * @version: 1.0.1
 * @copyright: copyright (c) 2022 andyten
 *  node: you can not copy and/or use and/or modify this program free,
 *  please reserve the segment above.Please mail me if you have any question.
 */
import HtPermDire from './HtPermDire';

const install = function(Vue) {
  Vue.directive('htperms', HtPermDire);
};

if (window.Vue) {
  window['permission'] = HtPermDire;
  Vue.use(install); // eslint-disable-line
}

// 组件或指令中定义install方法，即可用Vue.use来引入使用
HtPermDire.install = install;
export default HtPermDire;
